package vip.xiaonuo.biz.modular.Englishword.result;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@Data
public class QianWenResult {

    // Getters and Setters
    private List<Choices> choices;
    private String object;
    private Usage usage;
    private Long created;
    private String system_fingerprint;
    private String model;
    private String id;

    // Nested Classes
    @Setter
    @Getter
    public static class Choices {
        // Getters and Setters
        private Message message;
        private String finish_reason;
        private int index;
        private List<Double> logprobs;

    }

    @Setter
    @Getter
    public static class Message {
        // Getters and Setters
        private String role;
        private String content;

    }

    @Setter
    @Getter
    public static class Usage {
        // Getters and Setters
        private int prompt_tokens;
        private int completion_tokens;
        private int total_tokens;
        private PromptTokensDetails prompt_tokens_details;

    }

    @Setter
    @Getter
    public static class PromptTokensDetails {
        // Getters and Setters
        private int cached_tokens;

    }
}

